home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / tutor / dosguide.exe / HELPDOS.ZIP / TERMSF-I.HLP < prev    next >
Text File  |  1987-04-05  |  6KB  |  129 lines

  1. #File:  A collection of related information stored on disk and treated as a
  2. unit.  A file is identified by its filename and optional filename extension.
  3. #Filename:  A one- to eight-character string which identifies a file.  Each file
  4. must have a filename and may have a one- to three-character filename extension.
  5.  
  6. The following characters may be used in a filename:
  7.  
  8.      A-Z, 0-9, and the symbols: $ # & @ ! % ' ` ( ) - { } _ ^ ~
  9.  
  10.      All other characters are invalid.
  11.  
  12. See FILESPEC and FILENAME EXTENSION for related information.
  13. #Filename Extension:  A one- to three-character suffix to a filename.  The
  14. extension is optional.  When used, it must be separated from the filename by a
  15. period.  The file MYFILE.DAT has the filename extension "DAT".  Extensions are
  16. useful to add meaning to the filename.  Certain extensions have special meaning
  17. to DOS.  For example, BAT is used for batch files, COM for command files and EXE
  18. for executable programs.
  19.  
  20. The following characters may be used in a filename extension:
  21.  
  22.      A-Z, 0-9, and the symbols: $ & # @ ! % ' ` ( ) - { } _ ^ ~
  23.  
  24.      All other characters are invalid.
  25.  
  26. See FILENAME and FILESPEC for related information.
  27. #Filespec:  Stands for File Specification.  A filespec completely identifies
  28. a file to DOS.
  29.  
  30. A filespec has the form:
  31.  
  32.    [d:] [path] filename[.ext]
  33.  
  34.    where    d:     = the letter of the drive where the file can be found. If the
  35.                      file is on the default drive, "d" may be omitted.
  36.           path     = the "directory path," which tells DOS which subdirectory,
  37.                      if any, the file is in.  If the file is in the current
  38.                      directory, "path" may be omitted.
  39.           filename = the filename of the file.
  40.           .ext     = the filename extension of the file, if one exists.
  41.  
  42. See DEFAULT DRIVE, FILENAME, FILENAME EXTENSION and DIRECTORY PATH for
  43. related information.
  44. #Filter:  A program or command that receives data from a standard input device,
  45. changes the data and writes the results to a standard output device.  The
  46. commands SORT, FIND and MORE are filters.  The filtering is accomplished via
  47. piping (program chaining using "|" between commands) or redirection (with <, >
  48. or >> ).
  49.  
  50. Examples:  TYPE MYFILE | MORE        Displays the contents of MYFILE and halts
  51.                                      the computer when the screen is full.
  52.  
  53.    SORT < MYFILE > MYFILE.SRT        Sorts MYFILE and writes the sorted output
  54.                                      to the file MYFILE.SRT.
  55.  
  56. See CHAINING COMMANDS, PIPING AND REDIRECTION for more information.
  57.  
  58. See PIPING and REDIRECT in the ADVANCED menu for detail usage information.
  59. #Fragmented File:  A file that has many discontiguous (non-sequential or
  60. fragmented) sectors.  DOS tries to allocate a file's data in contiguous areas,
  61. but cannot always do so if many files have been erased and added to the disk.
  62. Fragmented files take longer to access, since DOS cannot read them sequentially.
  63.  
  64. The CHKDSK command will display files with discontiguous sectors.  To obtain a
  65. list of fragmented files enter:   CHKDSK *.*
  66.  
  67. If the fragmented file is on diskette, you can cure the fragmentation by
  68. copying all the files onto a newly formatted diskette (using the COPY command).
  69. When the files are copied, DOS will allocate data in contiguous areas, thus
  70. relieving fragmentation.  You may then either use the new diskette instead of
  71. the original or you can use DISKCOPY to copy the new diskette's files back to
  72. your original diskette.  Note that this does not change the names of the files
  73. or their contents.
  74. #Global Filename Characters (* and ?):  The asterisk (*) may be used in a
  75. filename and filename extension.  It means any character can be in the position
  76. of the *, and in the remainder of the filename or extension.  This global
  77. character lets you specify many files in one command.
  78.  
  79. For example, by using the * with the DIR command, you could see all files that
  80. have the filename extension of DAT by entering:
  81.  
  82.     DIR *.DAT
  83.  
  84. To see all files whose name begins with BUD enter:
  85.  
  86.     DIR BUD*
  87.  
  88. To see all files whose filename begins with BUD and whose extension begins with
  89. 8, enter:
  90.  
  91.     DIR BUD*.8*
  92.  
  93.  
  94. The global character (?), sometimes called a "wildcard," may be used in a
  95. filename and filename extension.  It means "any character in this position."
  96.  
  97. For example, by using ? with the DIR command, you could see all files with an
  98. eight character filename that begins with BUDGET and has a filename extension of
  99. DAT by entering:
  100.  
  101.     DIR BUDGET??.DAT
  102.  
  103. The seventh and eighth positions of the filename may have any characters.
  104. #Halt System:  To halt the computer.  DOS has three facilities which halt the
  105. computer until any key is pressed:
  106.  
  107. 1. Hold down the CTRL key and press the NUM LOCK key.  This will halt any
  108. operation.
  109.  
  110. 2. Chaining MORE to a command will cause display scrolling to halt when the
  111. screen is full.
  112.  
  113.    EXAMPLE:
  114.  
  115.       DIR | MORE
  116.  
  117.    Note: With the DIR command, the preferred way to halt the computer when the
  118.          screen is full is to add /P to the end of the command, as in DIR /P.
  119.  
  120. 3. A batch file can be halted by inserting the Batch Subcommand PAUSE in the
  121. batch file.
  122. #Internal Command:  A DOS command that is stored in memory and may be executed
  123. without requiring a diskette containing DOS to be in use.  The most commonly
  124. used commands, such as DIR, ERASE, CHDIR, DATE, RENAME (and others) are
  125. internal commands.  This is distinguished from "external commands" which reside
  126. on disk.
  127.  
  128. See also EXTERNAL COMMAND.
  129.